Class PlantEntry

java.lang.Object
jeresources.entry.PlantEntry

public class PlantEntry extends Object
  • Constructor Details

    • PlantEntry

      public PlantEntry(net.minecraft.world.item.ItemStack itemStack, net.minecraftforge.common.IPlantable plant, PlantDrop... drops)
    • PlantEntry

      public PlantEntry(net.minecraft.world.item.ItemStack itemStack, PlantDrop... drops)
    • PlantEntry

      public PlantEntry(T plant, PlantDrop... drops)
  • Method Details

    • registerGrass

      public static PlantEntry registerGrass()
    • getSoil

      public net.minecraft.world.level.block.state.BlockState getSoil()
    • getPlantState

      public net.minecraft.world.level.block.state.BlockState getPlantState()
    • getAgeProperty

      public net.minecraft.world.level.block.state.properties.Property<?> getAgeProperty()
    • setSoil

      public void setSoil(net.minecraft.world.level.block.state.BlockState soil)
    • setPlantState

      public void setPlantState(net.minecraft.world.level.block.state.BlockState plantState)
    • setAgeProperty

      public void setAgeProperty(net.minecraft.world.level.block.state.properties.Property<?> ageProperty)
    • add

      public void add(PlantDrop entry)
    • getPlant

      public net.minecraftforge.common.IPlantable getPlant()
    • getPlantItemStack

      public net.minecraft.world.item.ItemStack getPlantItemStack()
    • getDrops

      public List<PlantDrop> getDrops()
    • getLootDropStacks

      public List<net.minecraft.world.item.ItemStack> getLootDropStacks()
    • getDrop

      public PlantDrop getDrop(net.minecraft.world.item.ItemStack itemStack)
    • getTotalWeight

      public int getTotalWeight()